<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<layuicss/>
	<style type="text/css">
		.layui-form-select{
			width: 80%;
		}
	</style>
</head>
<body>

	<div style="margin: 15px;">
		<form class="layui-form">
			<input type="hidden" name="id" value="{$testTeaPer.id|default=''}">

			<div class="layui-form-item">
				<label class="layui-form-label">教师名字</label>
				<div class="layui-input-block">
					<eq name="type" value="add">
						<select name="teacher_id" lay-verify="teacher_id">
							<option value=""></option>
							<volist name="teacherList" id="vo">
							    <option value="{$vo.id}">{$vo.collegename} {$vo.name}</option>
							</volist>
						</select>
					<else/>
						<select name="teacher_id" lay-verify="teacher_id" disabled>
							<option value=""></option>
							<volist name="teacherList" id="vo">
								<eq name="vo.id" value="$testTeaPer.teacher_id">
							    	<option value="{$vo.id}" selected>{$vo.name}</option>
							    <else/>
							    	<option value="{$vo.id}">{$vo.id} {$vo.name}</option>
							    </eq>
							</volist>
						</select>
					</eq>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">开始时间</label>
				<div class="layui-input-block">
					<input class="layui-input" placeholder="开始日期" id="start_time" name="start_time" lay-verify="start_time" style="width:80%;"  value="{$testTeaPer.start_time|default=''}" readonly="true">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">结束时间</label>
				<div class="layui-input-block">
					<input class="layui-input" placeholder="结束日期" id="end_time" name="end_time" lay-verify="end_time" style="width:80%;"  value="{$testTeaPer.end_time|default=''}" readonly="true">
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>

		</form>
	</div>
	<layuijs/>
	<script type="text/javascript">
		var rooturl = "__ROOT__/";
		var editurl = "";
		if ('{$type}' == 'update'){
			editurl = "{:U('Home/TestTeacherPerMgr/updateTestTeaPer')}";
		}else if ('{$type}' == 'add'){
			editurl = "{:U('Home/TestTeacherPerMgr/addTestTeaPer')}";
		}
	</script>
	<script type="text/javascript" src="__PUBLIC__/static/js/editTestTeaPer.js"></script>
</body>
</html>